package com.iamteer.day18.batch;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

public class App {
	@Test
	public void testBatch() {
		//模拟数据
		List<Admin> list = new ArrayList<Admin>();
		for (int i = 0; i < 21; i++) {
			Admin admin = new Admin();
			admin.setUsername("Chuck" + i);
			admin.setPassword("888" + i);
			list.add(admin);
		}
		//保存
		AdminDao dao = new AdminDao();
		dao.save(list);
	}
}
